# 0
funa = lambda x, y=3: x * y
print(funa(3))


# 1
def funb(x):
    if x % 2:
        return x
    else:
        return None


print(funb(3))

# 2
# 就特么一行



# 3
list4 = list(filter(lambda x: not (x % 3), range(101)))
print(list4)

# 4
list5 = [i for i in range(101) if not (i % 3)]
print(list5)

# 过滤器
# list1 = list(filter(None, [1, 0, False, True]))
# print(list1)
#
#
# def odd(x):
#     return x % 2
#
#
# temp = range(10)
# show = filter(odd, temp)
# print(list(show))
# list2 = list(filter(lambda x: x % 3, range(10)))
# print(list2)
#
# list3 = list(map(lambda x: x * 2, range(10)))
# print(list3)
